import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { AlgoUnitMetadata } from './algo-unit-metadata';

@Injectable()
export class AlgoUnitService {
  constructor(private http: HttpClient) { }

  getList() {
    return this.http.get<AlgoUnitMetadata[]>('/api/AlgoUnit/GetList');
  }

  get(id: string) {
    return this.http.get<AlgoUnitMetadata>(`/api/AlgoUnit/${id}`);
  }
}
